##
# makefile - Created by Timothy Morey on 5/12/2012
#
# This is the makefile for the nvn-common (libnvn) shared library.
#

CFLAGS += -MD -MP -fPIC -g -shared -I/usr/include/libxml2
LDFLAGS += -g -shared -lxml2 -lnetcdf -lGL -lpthread -lX11

SRC = $(wildcard *.c)

libnvn.so: $(SRC:%.c=%.o)
	$(LD) $(LDFLAGS) -o $@ $^

-include $(SRC:%.c=%.d)

clean:
	rm -v -f libnvn.so *.d *.o *~ *.gch

install: libnvn.so
	cp libnvn.so ../lib